<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/25 0025
 * Time: 14:32
 */

namespace app\index\model;


use think\exception\ErrorException;
use think\Model;

class Taoorder extends Model
{
    public static function edit($id,$data)
    {
        try{
            $id = self::where('id',$id)->update($data);
        }catch (ErrorException $errorException){
            return 0;
        }
        return $id;
    }
}